package com.itheima.mapper;

import com.itheima.domain.Course;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CourseMapper {

    @Select("SELECT c.* FROM stu_cr sc,course c WHERE sc.cid = c.id AND sc.sid = #{sid}")
    public List<Course> findBySid(Integer sid);
}
